Skip to content

Only run travis tests on master and X.Y branches#102

Merged
brettcannon merged 1 commit intopython:masterfrom
dstufft:limit-travis-branches
Feb 15, 2017
Merged

Only run travis tests on master and X.Y branches#102
brettcannon merged 1 commit intopython:masterfrom
dstufft:limit-travis-branches

Conversation

@dstufft
Copy link
Member

@dstufft dstufft commented Feb 15, 2017

If someone pushes a branch to python/cpython and then creates a PR it will cause Travis to run tests needlessly, once for the PR and once for the push. This will limit the branches that Travis will run tests for to the master branch and branches that match the regex ^\d\.\d$.

This will have the effect that if someone purposely makes another branch they won't get tests to run, but in that rare case they can adjust this themselves.

An example of a branch that was needlessly built is: https://travis-ci.org/python/cpython/builds/201709867.

This feature is documented at https://docs.travis-ci.com/user/customizing-the-build#Building-Specific-Branches.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants